package com.yanqu.road.server.manger.config.grandchild.talent.entity;

import java.util.ArrayList;
import java.util.List;

public final class TalentTriggerResultBuilder {
    private int talentId;
    private List<TalentTriggerSkillResult> skillResultList = new ArrayList<>();

    private TalentTriggerResultBuilder() {
    }

    public static TalentTriggerResultBuilder aTalentTriggerResult() {
        return new TalentTriggerResultBuilder();
    }

    public TalentTriggerResultBuilder setTalentId(int talentId) {
        this.talentId = talentId;
        return this;
    }

    public TalentTriggerResultBuilder setSkillResultList(List<TalentTriggerSkillResult> skillResultList) {
        this.skillResultList = skillResultList;
        return this;
    }

    public TalentTriggerResult build() {
        TalentTriggerResult talentTriggerResult = new TalentTriggerResult();
        talentTriggerResult.setTalentId(talentId);
        talentTriggerResult.setSkillResultList(skillResultList);
        return talentTriggerResult;
    }
}
